#pragma once
#include "Globals.h"
#include <vector>

class BaseSprite
{
protected:

	int	meiObjID;
	int ShowState;			//The state in which the button will show.
	int SwitchState;		//The state an activator turns the game to.

	RECT			DrawBox;	
	char*			Text;

	D3DCOLOR		mvColor;
	D3DXVECTOR3		mvPosition;
	D3DXMATRIX		mvWorldTrans;	
	

public:

	//=====CONSTRUCTORS
	BaseSprite(){};
	BaseSprite(Pair,int,D3DCOLOR, char*);

	//=====INITIALIZE
	void InitRect(Pair Dimensions);

	//=====ACCESSORS
	RECT GetRect();
	bool CheckBounds(POINT Mouse);
	int   getObjID();
	int   GetShowState();
	int   GetSwitchState();
	char* GetText();
	D3DCOLOR getColor();
	D3DXMATRIX getTransform();
};
typedef vector<BaseSprite*> SpriteList;

